package com.tpo.serviceImpl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.tpo.dao.Tpo_userMapper;
import com.tpo.model.Tpo_user;
import com.tpo.model.User;
import com.tpo.service.UserManagerService;


@Service("userManagerService")
public class UserManagerServiceImpl implements UserManagerService {
	@Autowired
	Tpo_userMapper tpo_userMapper;
	@Override
	public int CheckUser(User user) throws Exception {
		return 0;
	}
	@Override
	public Tpo_user FindUser(int uid) throws Exception {
		return tpo_userMapper.selectByPrimaryKey(uid);
	}
	
	@Override
	public Tpo_user FindUserByName(String username) {
		return tpo_userMapper.findUserByName(username);
	}
	@Override
	public void updatePassword(Tpo_user user) {
		tpo_userMapper.updatePassword(user);
	}
	
}
